package com.caishichang.infosysdesign.dao;

import com.caishichang.infosysdesign.entity.Strategy;
import com.caishichang.infosysdesign.util.PageQueryUtil;

import java.util.List;

public interface StrategyMapper {

    /**
     * 获取攻略列表
     *
     * @param pageUtil
     * @return
     */
    List<Strategy> findStrategyList(PageQueryUtil pageUtil);

    /**
     * 查询攻略数目
     *
     * @param pageUtil
     * @return
     */
    int getStrategyNumber(PageQueryUtil pageUtil);

    /**
     * 通过攻略id查询攻略详情
     *
     * @param strategyId
     * @return
     */
    Strategy selectStrategyById(Long strategyId);


    int insertStrategy(Strategy strategy);

    int updateStrategy(Strategy strategy);

    /**
     * 删除单（多）个攻略（通过攻略id）
     *
     * @param ids
     * @return
     */
    int deleteStrategy(Long[] ids);

}
